package com.ioc.spring.service.impl;

import com.ioc.spring.annoation.IocResource;
import com.ioc.spring.annoation.IocService;
import com.ioc.spring.service.IOrderService;
import com.ioc.spring.service.IUserService;

/**
 * @Author 18011618
 * @Description
 * @Date 15:53 2018/6/18
 * @Modify By
 */
@IocService(name = "userbiz")
public class UserService implements IUserService {

    /*比较脆弱啊 这块的属性名称一定要用实现类来命名 且 按照第一个字母要小写的原则 否则很报错的*/
    @IocResource
    private IOrderService orderService;
    public String findOrder(String username) {
        return orderService.findOrder(username);
    }
}